package com.zd.service;

import com.zd.model.WorkInfoStatistics;
import com.zd.model.WorkInfo;

import java.util.List;
import java.util.Map;

public interface IWorkInfoService {


    /**
     * 查询校企合作信息
     *
     * @param pageNum
     * @param pageSize
     * @param queryMap
     * @return
     */
    public List<WorkInfo> selectWorkInfo(int pageNum, int pageSize, Map<String, Object> queryMap);

    List<WorkInfo> selectMaturity();

    List<WorkInfoStatistics> selectWorkInfoStatistics(Map<String, Object> statisticsMap);

    /**
     * 插入信息
     *
     * @param record
     * @return
     */
    public boolean insertSelective(WorkInfo record);

    /**
     * 查询详细信息
     *
     * @param id
     * @return
     */
    public WorkInfo selectWorkInfoById(int id);

    /**
     * 修改信息
     *
     * @param workInfo
     * @return
     */
    public boolean updateSelective(WorkInfo workInfo);


    /**
     * 物理删除合作内容关联表
     *
     * @param id
     * @return
     */
    public boolean deleteCooperativeContentRel(int id);

    /**
     * 物理删除合作协议字段
     *
     * @param id
     * @param deleteAgreementurlName
     * @return
     */
    public boolean deleteAgreementurlName(int id, String deleteAgreementurlName);

    /**
     * 逻辑删除
     *
     * @param id
     * @return
     */
    public boolean deleteWorkInfo(int id);

    //消除到期提醒
    public boolean eliminateReminding(int id);


    /**
     * 批量导出查询无分页
     *
     * @param queryMap
     * @return
     */
    public List<WorkInfo> selectWorkExport(Map<String, Object> queryMap);


    /**
     * 删除企业法人资质
     *
     * @param id
     * @return
     */
    public boolean deleteLegalPersonCertificate(int id);

    /**
     * 删除营业执照
     *
     * @param id
     * @return
     */
    public boolean deleteBusinessLicense(int id);


    /**
     * 删除企业资质
     *
     * @param id
     * @return
     */
    public boolean deleteQualifications(int id);

}
